package model.model03.demo04.decorator;

import com.model.model03.demo04.component.Component;

public class Decorator extends Component{

    protected Component component;

    public void setComponent(Component component) {
        this.component = component;
    }

    public void enhance () {
        if (component != null) {
            component.enhance();
        }
    }

}
